package com.zimmur.service.designer;

import java.util.List;

import com.zimmur.model.desiger.DesigerInfo;
import com.zimmur.model.desiger.DesigerVoView;
import com.zimmur.model.desiger.view.DesigerInfoVo;
import com.zimmur.model.desiger.view.DesigerVo;

public interface IDesignerInfoService {
	public DesigerInfo selectByUserId(long userId);
	public List<DesigerInfo> selectByTags(String tags,int pageNow,int pageSize);
	public int selectByTagsCount(String tags);
	
	int selectByTagsAndNameCount(String key);
	
	List<DesigerInfo> selectByTagsAndNameList(String key,int pageNow,int pageSize);
	
	/**
	 * 按条件查询衣匠 
	 * @param key nickName 用户昵称 
	 * @param tags tags    标签
	 * @param pageNow
	 * @param pageSize
	 * @param createUserId 当前用户
	 * @return
	 */
	List<DesigerVo> selectDesiger(String key,String tags,int pageNow,int pageSize,Long createUserId);
	/**
	 * 按条件查询衣匠总数 
	 * @param key
	 * @return
	 */
	int countDesiger(String key,String tags);
	/**
	 * 查询衣匠的个人详细信息
	 * @param userId
	 * @param createUserId
	 * @return
	 */
	DesigerInfoVo selectDesigerByUserId(long userId,long createUserId);
	/**
	 *  查询衣匠
	 *  返回所有衣匠，按首字母分区
	 * @return
	 */
	List<DesigerVoView> selectAll();
	
}
